package com.xqb.modules.service.impl;

import com.xqb.modules.domain.po.StdPointsBoard;
import com.xqb.modules.mapper.StdPointsBoardMapper;
import com.xqb.modules.service.IStdPointsBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学霸天梯榜Service业务层处理
 * 
 * @author xqb
 * @date 2024-10-14
 */
@Service
public class StdPointsBoardServiceImpl implements IStdPointsBoardService
{
    @Autowired
    private StdPointsBoardMapper stdPointsBoardMapper;

    /**
     * 查询学霸天梯榜
     * 
     * @param id 学霸天梯榜主键
     * @return 学霸天梯榜
     */
    @Override
    public StdPointsBoard selectStdPointsBoardById(Long id)
    {
        return stdPointsBoardMapper.selectStdPointsBoardById(id);
    }

    /**
     * 查询学霸天梯榜列表
     * 
     * @param stdPointsBoard 学霸天梯榜
     * @return 学霸天梯榜
     */
    @Override
    public List<StdPointsBoard> selectStdPointsBoardList(StdPointsBoard stdPointsBoard)
    {
        return stdPointsBoardMapper.selectStdPointsBoardList(stdPointsBoard);
    }

    /**
     * 新增学霸天梯榜
     * 
     * @param stdPointsBoard 学霸天梯榜
     * @return 结果
     */
    @Override
    public int insertStdPointsBoard(StdPointsBoard stdPointsBoard)
    {
        return stdPointsBoardMapper.insertStdPointsBoard(stdPointsBoard);
    }

    /**
     * 修改学霸天梯榜
     * 
     * @param stdPointsBoard 学霸天梯榜
     * @return 结果
     */
    @Override
    public int updateStdPointsBoard(StdPointsBoard stdPointsBoard)
    {
        return stdPointsBoardMapper.updateStdPointsBoard(stdPointsBoard);
    }

    /**
     * 批量删除学霸天梯榜
     * 
     * @param ids 需要删除的学霸天梯榜主键
     * @return 结果
     */
    @Override
    public int deleteStdPointsBoardByIds(Long[] ids)
    {
        return stdPointsBoardMapper.deleteStdPointsBoardByIds(ids);
    }

    /**
     * 删除学霸天梯榜信息
     * 
     * @param id 学霸天梯榜主键
     * @return 结果
     */
    @Override
    public int deleteStdPointsBoardById(Long id)
    {
        return stdPointsBoardMapper.deleteStdPointsBoardById(id);
    }
}
